Fix build when have_libsoup_client_certs=no
authorGatis Paeglis <gatis.paeglis@qt.io>
Thu, 12 May 2016 12:42:38 +0000 (14:42 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 13 May 2016 14:33:08 +0000 (14:33 +0000)
This fixes a build failure with older libsoup versions
that do not have the client certificates feature.

Closes: #294
Approved by: cgwalters

src/libostree/ostree-fetcher.c

index 6a75ad5987f891eb5a103d73704c3d1a986a6bd2..91b419a5793e4f9c2d2ad017c1af451a9a84dad8 100644 (file)
@@ -273,6 +273,7 @@ session_thread_set_proxy_cb (ThreadClosure *thread_closure,
                 proxy_uri, NULL);
 }
 
+#ifdef HAVE_LIBSOUP_CLIENT_CERTS
 static void
 session_thread_set_tls_interaction_cb (ThreadClosure *thread_closure,
                                        gpointer data)
@@ -288,6 +289,7 @@ session_thread_set_tls_interaction_cb (ThreadClosure *thread_closure,
                 SOUP_SESSION_TLS_INTERACTION,
                 interaction, NULL);
 }
+#endif
 
 static void
 session_thread_set_tls_database_cb (ThreadClosure *thread_closure,